package B2;

public enum State {
    /**
     * 继电器电源接通
     */
    Reading("Reading","用户输入字符"),
    /**
     * 继电器电源断开
     */
    Comparing("Comparing","比较输入的字符串和正确的密码"),
    /**
     * 烧坏状态
     */
    Locked("Locked","锁定状态"),
    /**
     * 休眠状态
     */
    Selecting("Selecting","系统功能选择状态");
    private String name;
    private String value;
    State(String name, String value) {
        this.name = name;
        this.value = value;
    }
    public String getName() {
        return this.name;
    }
    public String getValue() {
        return value;
    }
    @Override
    public String toString() {
        return "State{" +
                "name='" + name + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}

